import httpRequest from '@/http/httpRequest'

// 获取产品分类列表
export const getList = (data) => {
  return httpRequest.post('/product-category/list', data)
}

// 条件查询产品分类
export const getByCondition = (data) => {
  return httpRequest.post('/product-category/get', data)
}

// 保存或更新产品分类
export const save = (data) => {
  return httpRequest.post('/product-category/save', data)
}

// 删除产品分类
export const deleteCategory = (id) => {
  return httpRequest.delete(`/product-category/delete/${id}`)
} 